package com.dy.nygl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.dy.nygl.pojo.EnergyYear;

@Component("energyYearDao")
public interface EnergyYearMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(EnergyYear record);

	int insertSelective(EnergyYear record);

	EnergyYear selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(EnergyYear record);

	int updateByPrimaryKey(@Param("name") String name);

	List<EnergyYear> selectAll();

	List<EnergyYear> selectPeriods(@Param("beginId") Integer beginId, @Param("endId") Integer endId);

}